home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-05-22 | 1.1 KB | 88 lines | [TEXT/CWIE] |
- // Initialization and Deinitialization code
-
- // System headers
- #include <Fonts.h>
- #include <Movies.h>
- #include <Resources.h>
-
- // API headers
-
- // Application-specific headers
- #include "app.h"
- #include "AE.h"
- #include "qtvrsupp.h"
-
-
- /////
- //
- // Local Prototypes
- //
- /////
-
- // Toolbox
- void InitToolBox();
-
-
- /////
- //
- // Run the program's initialization sequence
- //
- /////
-
- void DoInit(void)
- {
- // Initialize globals
- g.Done = false;
-
- InitToolBox(); // Initialize the Toolbox
-
- AEInit(); // Initialize AppleEvents
-
- MenuBarInit(); // Initialize the Menu Bar
-
- mQTVRInit(); // Initialize QTVR Support
-
- }
-
- /////
- //
- // Run the program's shutdown sequence
- //
- /////
-
- void DeInit(void) // Run the program's shutdown sequence
- {
- CloseAllMovies();
- mQTVRUninit(); // Dump QTVR Support
- }
-
-
- /////
- //
- // Initialize the Toolbox
- //
- /////
-
- void InitToolBox()
- {
- MaxApplZone();
- InitGraf(&qd.thePort);
- InitFonts();
- FlushEvents(everyEvent, 0);
- InitWindows();
- InitMenus();
- TEInit();
- InitDialogs(0L);
- InitCursor();
-
- if(EnterMovies())
- {
- UserMessage("\pCould not initialize QuickTime.");
- g.Done = true;
- return;
- }
-
- }
-
-
-